<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Welcome to Car Rent Inc</title>
</h:head>
<h:body>
	<h:form>
		<h:panelGrid columns="2">
		Language : 
		<h:selectOneMenu value="#{language.localeCode}" onchange="submit()"
				valueChangeListener="#{language.countryLocaleCodeChanged}">
				<f:selectItems value="#{language.countriesInMap}" />
			</h:selectOneMenu>
		</h:panelGrid>
	</h:form>
	<c:set var="client" value="${sessionScope.client}" />
	<c:choose>
		<c:when test="${client == null}">
			<h:outputText value="#{msg['not_logged_in']} " />
			<br />
			<h:link value="#{msg['login']}" outcome="faces/client/login" />
			<br />
			<h:link value="#{msg['register']}" outcome="faces/client/register" />
			<br />
		</c:when>
		<c:otherwise>
		</c:otherwise>
	</c:choose>

</h:body>
</html>